package pub.guoxin.oops.common.protocol.config;

import com.google.common.collect.Lists;
import lombok.Getter;
import pub.guoxin.oops.common.protocol.adapter.AbstractDataProtocolTypeAdapter;

import java.util.List;

/**
 * Created by guoxin on 18-3-20.
 */
@Getter
public class DataProtocolTypeConfigurer {
    private List<AbstractDataProtocolTypeAdapter> adapters = Lists.newArrayList();

    public DataProtocolTypeConfigurer register(AbstractDataProtocolTypeAdapter dataProtocolCommandAdapter) {
        this.adapters.add(dataProtocolCommandAdapter);
        return this;
    }
}
